package cn.tedu.medicalappointmentsystemk.dao.persist.mapper;

import cn.tedu.medicalappointmentsystemk.pojo.bo.UserSelectBO;
import cn.tedu.medicalappointmentsystemk.pojo.po.UserPO;
import cn.tedu.medicalappointmentsystemk.pojo.vo.UserLoginVO;
import cn.tedu.medicalappointmentsystemk.pojo.vo.UserSelectVO;
import cn.tedu.medicalappointmentsystemk.pojo.vo.UserUpdateVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<UserPO> {
    UserSelectVO selectUserById(Long id);

    Integer update(UserUpdateVO vo);

    UserLoginVO selectByUsername(String username);

    List<UserSelectBO> selectList();

    String selectNicknameById(Long id);

    Long selectIdByUsername(String username);
}
